package com.yun.blog.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yun.blog.bean.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * title        : TagMapper
 * projectName  : dantouBlog-back
 * description  : TODO
 * author       : simple
 * date         : 2022/11/23下午9:22
 */

@Mapper
public interface TagMapper extends BaseMapper<Tag> {
    Tag getByTagName(@Param("tagName") String tagName);

    Tag getByTagId(@Param("tagId") Integer tagId);

    List<Tag> getByBlogId(@Param("blogId") Integer blogId);

    List<Tag> listByIsUse(@Param("isUse") Boolean isUse);
}
